package com.ldubbo.service;

import java.io.IOException;
import org.apache.log4j.Logger;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class StartMain {

	private static final Logger logger = Logger.getLogger(StartMain.class);

	public static void main(String[] args) throws IOException {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "classpath*:spring/spring-dubbo.xml" });

		logger.info("dubbo start...");
		context.start();
		logger.info("dubbo start success");

		System.in.read();
		context.close();
	}

}
